#include "playall.h"

PlayAll::PlayAll()
{
}


QStringList PlayAll::getExtensions() {
    return QStringList();
}

QString PlayAll::getName() {
    return "";
}

QIcon PlayAll::getImage() {
    return QIcon(":/imgs/3F00Button_AllMedia.png");
}

QIcon PlayAll::getIcon(MediaFile * mediaFile) {
    QFileInfo fileInfo=QFileInfo(mediaFile->shortName);
    FileSelectionInterface * interface=PlayerManager::getFileSelector(fileInfo.suffix());
    if(interface) {
        return interface->getIcon(mediaFile);
    }

    return QIcon();
}

void PlayAll::test() {

}

QWidget * PlayAll::getInterface() {
    return NULL;
}

void PlayAll::setMediaFile(MediaFile * mediaFile) {
    QFileInfo fileInfo=QFileInfo(mediaFile->shortName);
    FileSelectionInterface * interface=PlayerManager::getFileSelector(fileInfo.suffix());
    if(interface) {
        interface->setMediaFile(mediaFile);
    }
}
